-- GENERATED SPELL FOR [Mana Seeker] --


function spell0_18867(pUnit, Event) --@Mana Burn,n/a--
pUnit:FullCastSpellOnTarget(11981,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18867', 3000, 1)
end

function spell1_18867(pUnit, Event) --@Slow,n/a--
pUnit:FullCastSpellOnTarget(36843,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18867', 12000, 1)
end

function Sorts_18867(pUnit, Event)
local choix_sorts_18867 = math.random(0, 1)
if choix_sorts_18867 == 0 then
pUnit:RegisterEvent('spell0_18867', 1, 1)
end
if choix_sorts_18867 == 1 then
pUnit:RegisterEvent('spell1_18867', 1, 1)
end
end

function mob18867_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_18867', math.random(1500, 3000), 1)
end

function mob18867_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18867_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18867_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(18867, 1, 'mob18867_Action')
RegisterUnitEvent(18867, 2, 'mob18867_Leave')
RegisterUnitEvent(18867, 3, 'mob18867_Kill')
RegisterUnitEvent(18867, 4, 'mob18867_Die')
